<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">商品ID</label>
            <div class="layui-input-inline">
                <input name="id" value="{$Think.get.id|default=''}" placeholder="请输入商品ID" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">产品名称</label>
            <div class="layui-input-inline">
                <input name="name" value="{$Think.get.name|default=''}" placeholder="请输入产品名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">产品类型</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="tid">            
                    <option  value="">--全部--</option>
                    
                    {foreach $markettype as $vo}
                    <!--{eq name='Think.get.tid' value='$vo.id.""'}-->
                     <option value="{$vo.id}" selected="selected"  >{$vo.name}</option>
                     <!--{else}-->
                   <option value="{$vo.id}" >{$vo.name}</option>
                    <!--{/eq}-->
                    {/foreach}


                </select>
            </div>
        </div>
        <!-- <div class="layui-form-item layui-inline">
            <label class="layui-form-label">审核状态</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="status">            
                    <option  value="">--全部--</option>
                    <option value="1" {eq name='Think.get.status' value='1'}selected{/eq}>待审核</option>
                    <option value="2" {eq name='Think.get.status' value='2'}selected{/eq}>审核通过</option>
                    <option value="3" {eq name='Think.get.status' value='3'}selected{/eq}>审核拒绝</option>
                </select>
            </div>
        </div> -->
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">是否上架</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="is_show">            
                    <option  value="">--全部--</option>
                    <option value="1" {eq name='Think.get.is_show' value='1'}selected{/eq}>上架</option>
                    <option value="0" {eq name='Think.get.is_show' value='0'}selected{/eq}>已下架</option>
                    
                </select>
            </div>
        </div>
        


        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>

</fieldset>

<script>form.render()</script>
